package com.wen.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wen.mapper.PurchaseOrderDetailsMapper;

import com.wen.pojo.PurchaseOrderDetails;
import com.wen.pojo.dto.PurchaseOrderDetailsDto;
import com.wen.service.PurchaseOrderDetailsService;

import com.wen.pojo.PurchaseOrderDetails;
import com.wen.pojo.dto.wen.PurchaseOrderDetailsDto;
import com.wen.pojo.dto.wen.PurchaseOrderDetailsSP;
import com.wen.service.PurchaseOrderDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PurchaseOrderDetailsServiceImpl extends ServiceImpl<PurchaseOrderDetailsMapper, PurchaseOrderDetails> implements PurchaseOrderDetailsService {
    @Autowired
    private PurchaseOrderDetailsMapper mapper;

    @Override
    public List<PurchaseOrderDetailsDto> SelAllId(String id) {
        List<PurchaseOrderDetailsDto> purchaseOrderDetailsDtos = mapper.SelAllId(id);
        return purchaseOrderDetailsDtos;

    @Override
    public List<PurchaseOrderDetailsDto> selById(String id) {
        return mapper.selById(id);
    }

    @Override
    public List<PurchaseOrderDetailsSP> selPurchaseOrderDetailsSP(String id) {

        List<PurchaseOrderDetailsSP> purchaseOrderDetailsSPS = mapper.selPurchaseOrderDetailsSP(id);

        return purchaseOrderDetailsSPS;
    }

}
